package com.ttc.ssm.service.home;

import com.ttc.ssm.common.JobPage;
import com.ttc.ssm.common.SearchJobPage;
import com.ttc.ssm.po.*;

import java.util.List;
import java.util.Map;

/**
 * Created by Hui on 2016/8/9.
 */
public interface HomeJobService {
    List<JobProperty> getJobProperty() throws Exception;
    List<Industry> getIndustry() throws Exception;
    List<JobType> getJobTypeByIndustryId(int industry_id) throws Exception;
    List<Degree> getDegree() throws Exception;
    List<SalaryType> getSalaryType() throws Exception;
    List<JobTag> getJobTab(int company_id) throws Exception;
    List<Zone> getZone() throws Exception;
    List<City> getCityByZoneId(int zone_id) throws Exception;
    int insertJob(int company_id,Job job) throws Exception;

    int countRows(JobPage jobPage) throws Exception;
    Job selectJobById(Integer job_id) throws Exception;
    List<Job> selectJobForPage(JobPage jobPage) throws Exception;
    Job selectJobById(int jobId) throws Exception;
    JobType getJobTypeByJobTypeId(int job_type_id) throws Exception;
    String getIndustryNameById(int industry_id) throws Exception;
    int getZoneByCityId(int city_id) throws Exception;
    String getZoneNameById(int zone_id) throws Exception;
    List<TagToJob> getTagForJob(int job_id) throws Exception;

    List<Job> selectJob(SearchJobPage searchJobPage) throws Exception;
    int countRowsForSearchJob(SearchJobPage searchJobPage) throws Exception;

    int selectCompanyIdByJobId(int job_id) throws Exception;
    void insertDelivery(Delivery delivery) throws Exception;
    int countDeliveryRowsByJobId(int job_id) throws Exception;
    int countInviteRowsByJobId(int job_id) throws Exception;
    int checkIsSend(int resume_id, int job_id) throws Exception;
}
